
def fn():
    print("fn start")
    a = 0
    while True:
        a += 1
        yield a

g = fn()
print(next(g))
print(next(g))
print(next(g))
print(next(g))

